﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FinalFlag : MonoBehaviour
{

	Collider2D coli;
	private void Start() {
		coli = GetComponent<Collider2D>();
	}

	private void OnTriggerEnter2D(Collider2D other) {
			Debug.Log("通关");
		if (other.gameObject.tag == "Player") {
			GameController.Instance.EndGame(other.GetComponent<Player>());
		}
	}


}
